package com.mew.slots.core.common.messge.response;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

/**特殊游戏反馈
 * @author dylin
 * @create 2020/11/28 0028
 */
@Data
@ToString
public class SlotsBonusPlayResponseMessage extends ZebraBaseMessage<SlotsBonusPlayResponseMessage> {
    public int bonusType;//特殊游戏类型
    public long goldNumber; //当前背包金额
    public int expProb;   //经验值百分比 -1 表示没有经验更新
    public int jpNo;//奖池编号
    public long jp;//奖池金额

    @Override
    public void write(ByteBuf b) {

        writeInt(b,bonusType);
        writeLong(b,goldNumber);
        writeInt(b, this.expProb);
        writeInt(b,jpNo);
        writeLong(b,jp);
    }

    @Override
    public SlotsBonusPlayResponseMessage read(ByteBuf byteBuf) {
        readInt(byteBuf);
        return null;
    }
}
